USE [Dosvid]
GO

/****** Object:  Table [dbo].[Candidate_Resume]    Script Date: 08/10/2011 23:16:00 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Candidate_Resume](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CandidateID] [int] NOT NULL,
	[Resume] [image] NOT NULL,
 CONSTRAINT [PK_Candidate_Resume] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

INSERT INTO [dbo].[Candidate_Resume](CandidateID,[Resume])
SELECT Id,[Resume] FROM [dbo].[Candidates]
WHERE [Resume] IS NOT NULL
GO



